package xjtu.sad.zbsj.common.model.user;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;
import xjtu.sad.zbsj.common.page.PageParam;

import java.util.Date;

public class UserDto extends PageParam {
	private String u_id;
	private String u_name, u_name_new;
	private String u_pwd, u_pwd_new;
	private String u_avatar;
	private String u_email;
	private Integer u_sex;
	
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date u_reg_time;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date u_birth;

	public String getU_id() {
		return u_id;
	}

	public void setU_id(String u_id) {
		this.u_id = u_id;
	}

	public String getU_name() {
		return u_name;
	}

	public void setU_name(String u_name) {
		this.u_name = u_name;
	}

	public String getU_name_new() {
		return u_name_new;
	}

	public void setU_name_new(String u_name_new) {
		this.u_name_new = u_name_new;
	}

	public String getU_pwd() {
		return u_pwd;
	}

	public void setU_pwd(String u_pwd) {
		this.u_pwd = u_pwd;
	}

	public String getU_pwd_new() {
		return u_pwd_new;
	}

	public void setU_pwd_new(String u_pwd_new) {
		this.u_pwd_new = u_pwd_new;
	}

	public String getU_avatar() {
		return u_avatar;
	}

	public void setU_avatar(String u_avatar) {
		this.u_avatar = u_avatar;
	}

	public String getU_email() {
		return u_email;
	}

	public void setU_email(String u_email) {
		this.u_email = u_email;
	}

	public Integer getU_sex() {
		return u_sex;
	}

	public void setU_sex(Integer u_sex) {
		this.u_sex = u_sex;
	}

	public Date getU_reg_time() {
		return u_reg_time;
	}

	public void setU_reg_time(Date u_reg_time) {
		this.u_reg_time = u_reg_time;
	}

	public Date getU_birth() {
		return u_birth;
	}

	public void setU_birth(Date u_birth) {
		this.u_birth = u_birth;
	}
}
